package com.raycloud.domain;

import java.io.Serializable;
import java.util.Date;

import com.raycloud.dao.dbhash.DbHashUtil;

public class MsgIndex implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String dbId;

	private long userId;
	
	private long authorId;
	
	private String msgId;
	
	private Date addTime;
	
	public MsgIndex(){}
	
	public MsgIndex(long userId, long authorId, String msgId, Date addTime) {
		super();
		this.userId = userId;
		this.authorId = authorId;
		this.msgId = msgId;
		this.addTime = addTime;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(long authorId) {
		this.authorId = authorId;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getDbId() {
		return dbId;
	}

	public void setDbId(String dbId) {
		this.dbId = dbId;
	}
}
